package 剑指offer.Month7_07.day12;

import java.util.ArrayList;

public class 打印从1到最大的n位数 {

    public int[] printNumbers (int n) {
        // write code here
        int max = (int)Math.pow(10,n);
        int[] arr = new int[max - 1];
        for (int i = 0; i < arr.length; i++) {
            arr[i] = i + 1;
        }
        return arr;
    }
}
